<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('goods', function (Blueprint $table) {
            $table->increments('id');
            $table->string('gname')->comment('商品的名称');
            $table->string('cid')->comment('商品所属分类');
            $table->string('attrs')->comment('商品的名称');
            $table->string('miaoshu')->comment('商品的描述');
            $table->string('price')->comment('商品的价格');
            $table->string('click')->comment('商品的访问量');
            $table->string('pics')->comment('商品的图片');
            $table->string('content')->comment('商品的详情');

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('goods');
    }
}
